@searchform_input_font_closed:1em;
@searchform_input_font_active:40px;
@searchform_icon_font_closed:1em;
@searchform_icon_font_active:1.6em;

@searchform_icon_color:#555;
@searchform_input_color:rgb(138, 149, 160);

@searchresult_mainbackground: #efefef;
@searchresult_box_shadow:inset 0 1px 6px rgba(0,0,0,0.2);

@searchmeta_mainbackground:rgba(63, 63, 63, 0.96);
@searchmeta_main_font_size:12px;
@searchmeta_main_font_color: #eeeeee;
@searchmeta_panel_width:250px;

#search_container
{
  float: right;
  text-align: right;
  overflow: visible;
  position: relative;
  z-index: 1015;

  span.search_advanced_direct_access{
    display: block;
    opacity: 0;
    position: absolute;
    bottom: 1px;
    right: 5px;
    font-size: 9px;
    cursor: default;
    transition: opacity ease 0.5s;
  }

  &.search_active{
    div#search_form input{
      width: 100%;
      background: #fff;
      border: 0;
      text-align: left;
      padding-right: 0;
      font-size: @searchform_input_font_active;
      font-family: @fontBold;
    }
    div#search_form a{
      font-size: @searchform_icon_font_active;
      top: 17px;
      right: 16px;
    }
    span.search_advanced_direct_access{
      display: block;
      opacity: 1;
      cursor: pointer;
    }
  }

  #search_panel{
    overflow: visible;
  }

  #search_form  {
    padding-right: 0;
    height: 33px;
    overflow: visible;
    input{
      float: right !important;
      margin: 0;
      height: 58px;
      background: transparent;
      font-size: @searchform_input_font_closed;
      color: @searchform_input_color;
      padding-left: 5px;
      width: 80px;
      border: 0 #f5f5f5;
      text-align: right;
      padding-right: 30px;
      transition:border-color 0.5s ease, width 0.5s ease;
      border-radius: 0;

    }
    a{
      display: inline-block;
      width: 18px;
      cursor: pointer;
      font-size: @searchform_icon_font_closed;
      padding-top: 0;
      color: @searchform_icon_color;
      position: absolute;
      right: 9px;
      top: 21px;
      transition: font-size ease 0.5s, top ease 0.5s, right ease 0.5s;
      &.disabled {
        display: none;
      }
      img{
        margin-top: 2px;
        vertical-align: top;
        display: none;
      }
    }
  }

  #search_results_cont{
    display: none;
    position: absolute;
    z-index: 1010;
    background-color: @searchresult_mainbackground;
    text-align: left;
    box-shadow: @searchresult_box_shadow;

    span.results_string{
      display: none;
    }

    div.results-parser-filter{
      text-align: center;
      font-size: 12px;
      color: #747474;
      font-style: italic;
      display: inline-block;
      margin-left: 10px;
      a{
        text-decoration: underline;
        color: #393939;
        cursor: pointer;
      }
    }

    .search_label.open{
      display: none;
      padding: 2px;
      height: 20px;
    }

    .search_label.close{
      display: block;
      font-size: 20px;
      padding: 15px 10px 14px;
      border-bottom:1px solid #eee;
      border-right:1px solid #eee;
    }

    span.icon-save{
      font-size: 0.8em;
      display: inline-block;
      margin:0 5px;
    }

    .close_results.icon-remove-sign,
    .close_results.mdi-close {
      position: absolute;
      display: inline-block;
      right: 13px;
      cursor: pointer;
      font-size: 1.4em;
      color: #999;
      top: 9px;
      z-index: 10;
    }

    #basic_search{
      padding: 8px;
      min-height: 27px;
      span#search_meta_options{
        display: none;
      }

      span.toggle_button.open,span.toggle_button.close{
        transition: @bezier_transition;
        display: inline-block;
        padding: 5px 16px;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
        border-radius: 1px;
        span.icon-chevron-left{
          display: none;
        }
      }

      span.toggle_button.close{
        display: none;
      }

      &.toggle_open span.toggle_button.close,
      span.toggle_button.open
      {
        background: transparent;
        color: @primary-1-color;
        text-transform: uppercase;
      }

      &.toggle_open span.toggle_button.open
      {
        background-color: white;
      }

    }

    #search_results{

      div.panelHeader{
        display: none;
      }

      .flexbox &{
        display: -webkit-flex !important;
        display: flex !important;
      }

      margin-left: 0;
      width: 100%;
      &.fl-displayMode-detail div.scroller_track {
        top: 42px;
      }

      div[data-groupByValue]{
        clear: left;
        overflow: hidden;
        margin-bottom: 10px;
        margin-left: 12px;
        margin-right: 7px;
        h3 {
          font-size: 13px;
          width:60%;
          min-width: 80%;
          margin: 10px auto;
          color:rgba(0,0,0,0.73);
          font-weight: 500;
          padding: 5px 0;
        }
      }

      div#element_overlay {
        background-color: rgba(255, 255, 255, 0.2);
        opacity: 1;
        img{
          width: 20px;
          margin-top: 16px !important;
        }
      }

      div.thumbnail_selectable_cell.detailed{
        cursor: pointer;
        border-radius: 1px;
        width:60%;
        min-width: 80%;
        float: none;
        margin: 10px auto !important;
        box-sizing: border-box;
        padding: 0;
        overflow: hidden;
        border-bottom: none;
        background-color: white;
        height:102px;
        box-shadow: @reactBoxShadowDepthMini;
        div.thumbnail_cell_metadata {
          /*opacity: 1;*/
        }
        span.text_label{
          padding-top: 0;
        }
        div.thumbLabel{
          font-size: 14px !important;
          font-weight: 500;
          color: rgba(0,0,0,0.73);
          padding: 16px 0 5px;
          /*color: darken(@primary-1-color, 0.9);*/
        }
        div.thumbnail_cell_metadata {
          opacity: 1;
          span.metadata_chunk{
            padding: 0;
            font-size: 12px;
            font-weight: 500;
            color: rgba(0,0,0,0.43);
            &.metadata_chunk_ajxp_dirname{
              padding: 16px 0;
              color: @primary-1-color;
              text-transform: uppercase;
            }
          }
        }
        div.thumbnail_selectable_cell {
          margin: 0 20px 0 0;
          padding: 16px 20px;
          border-right: 1px solid #e8e8e8;
          height: 100% !important;
          div.overlay_icon_div{
            display: none !important;
          }
        }

        &.selected-focus div.thumbnail_cell_metadata,
        &:hover div.thumbnail_cell_metadata
        {
          opacity: 1;
        }
      }

      span.metadata_chunk{

        &.metadata_chunk_standard,
        &.metadata_chunk_standard span.text_label
        {
          display: block;
        }
        span.icon-angle-right{
          display:none;
        }
        span.text_label{
          padding-left: 0;
        }
        &.metadata_chunk_standard.metadata_chunk_mimestring_id{
          display: none;
        }

      }

      div.ajxpNodeProvider:hover
      {
        background-color: rgb(249, 249, 249) !important;
      }

    }

    #search_meta {

      font-size: @searchmeta_main_font_size;
      background-color: @searchmeta_mainbackground;
      color: @searchmeta_main_font_color;

      padding: 0;
      float: left;
      width: 0;
      overflow: hidden;
      margin-left: 0;
      transition: width 1s ease, margin-left 1s ease;
      margin-top: -62px;
      position: relative;
      & > div{
        width: @searchmeta_panel_width;
      }
      &.toggle_open{
        margin-left: -@searchmeta_panel_width;
        width: @searchmeta_panel_width;
        span.search_label.open{
          display: none;
        }
      }

      #refresh_search_button{
        cursor: pointer;
        font-size: 0.8em;
        float: right;
        margin-top: 5px;
        margin-right: 5px;
      }

      input.c3, span.c3 {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        border-width: 0;
        border-bottom: 1px solid rgb(238, 238, 238);
        background-color: #ffffff;
        padding: 4px 0px;
        width: 90% !important;
        &:focus{
          border-bottom: 2px solid @primary-1-color;
        }
      }

      select.select_meta_selector {
        margin-left: 0;
        width: 93%;
        height: 26px;
      }

      input.c3:disabled{
        opacity: 0.35;
      }

      span.c3{
        cursor: pointer;
      }

      span#ajxp_folder.c3 {
        color: @primary-1-color;
        font-weight: 500;
        text-transform: uppercase;
        padding: 6px 16px;
        border-bottom: 0;
        background-color: rgba(238, 238, 238, 0.63);
        border-radius: 1px;
      }
      input.c3:focus{
        background-color: white;
      }

      #modiftime_fixed_radio span.c3{
        color: @primary-1-color;
        font-weight: 500;
        text-transform: uppercase;
        padding: 6px 12px;
        border-bottom: 0;
        background-color: rgba(238, 238, 238, 0.63);
        border-radius: 1px;
        margin-right: 5px;
        font-size: 0.9em;
      }

      div#modiftime_fixed_radio {
        margin-top: 16px;
        color: #333;
      }

      span.c3.selected{
        background-color: rgb(138, 149, 160) !important;
        color: white;
      }

      span.c4 {
        display: inline-block;
        width: 30% !important;
        text-align: right;
        padding-right: 2%;
      }

      span.c6 {
        display: block;
        width: 30%;
        text-align: right;
        clear: left;
        float: left;
        padding-right: 2%;
      }

      span.c4,
      span.c6
      {
        display: block;
        width: 100% !important;
        text-align: left;
        line-height: 17px;
        padding-top: 2px;
        color: @primary-1-color;
        font-weight: 500;
        font-size: 10px;
      }

      div.advanced_search_section span[class^="icon-"],
      div.advanced_search_section span[class*=" icon-"]{
        display: none;
      }


      &.toggle_open #basic_search{
        border-bottom: 1px solid rgb(143, 162, 182);
      }

      &_detailed {
        padding:5px 0 10px;
        line-height: 28px;
        overflow: hidden;
      }

      div.advanced_search_section{
        padding: 5px 5px 15px 10px;
        line-height: 29px;
        display: none;
      }

      div.advanced_search_section.visible{
        display: block;
      }

      div.advanced_search_section_title {
        font-size: 13px;
        font-weight: 500;
        border-top: 1px solid rgba(255,255,255,0.3);
        padding: 8px 8px 9px 10px;
        margin: 0;
        display: block;
        clear: left;
        span.icon-circle{
          display: none;
        }
      }


      span.search_meta_opt {
        cursor: pointer;
      }
      span.search_meta_opt > span{
        display: none;
      }

      span.search_meta_opt.checked > span {
        display: inline;
      }
    }
  }
}
